1. Packages
  2. Gitlab Provider
  3. API Docs
  4. ProjectLevelNotifications
GitLab v9.2.0 published on Friday, Jul 18, 2025 by Pulumi

gitlab.ProjectLevelNotifications

Explore with Pulumi AI

gitlab logo
GitLab v9.2.0 published on Friday, Jul 18, 2025 by Pulumi

    The gitlab.ProjectLevelNotifications resource manages notifications for a project.

    While the API supports both groups and projects, this resource only supports projects currently.

    Upstream API: GitLab REST API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const example = new gitlab.Project("example", {
        name: "example project",
        description: "Lorem Ipsum",
        visibilityLevel: "public",
    });
    // Basic example
    const notifications = new gitlab.ProjectLevelNotifications("notifications", {
        project: example.id,
        level: "global",
    });
    // Custom notification example
    const custom = new gitlab.ProjectLevelNotifications("custom", {
        project: example.id,
        level: "custom",
        newMergeRequest: true,
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    example = gitlab.Project("example",
        name="example project",
        description="Lorem Ipsum",
        visibility_level="public")
    # Basic example
    notifications = gitlab.ProjectLevelNotifications("notifications",
        project=example.id,
        level="global")
    # Custom notification example
    custom = gitlab.ProjectLevelNotifications("custom",
        project=example.id,
        level="custom",
        new_merge_request=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gitlab/sdk/v9/go/gitlab"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := gitlab.NewProject(ctx, "example", &gitlab.ProjectArgs{
    			Name:            pulumi.String("example project"),
    			Description:     pulumi.String("Lorem Ipsum"),
    			VisibilityLevel: pulumi.String("public"),
    		})
    		if err != nil {
    			return err
    		}
    		// Basic example
    		_, err = gitlab.NewProjectLevelNotifications(ctx, "notifications", &gitlab.ProjectLevelNotificationsArgs{
    			Project: example.ID(),
    			Level:   pulumi.String("global"),
    		})
    		if err != nil {
    			return err
    		}
    		// Custom notification example
    		_, err = gitlab.NewProjectLevelNotifications(ctx, "custom", &gitlab.ProjectLevelNotificationsArgs{
    			Project:         example.ID(),
    			Level:           pulumi.String("custom"),
    			NewMergeRequest: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using GitLab = Pulumi.GitLab;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new GitLab.Project("example", new()
        {
            Name = "example project",
            Description = "Lorem Ipsum",
            VisibilityLevel = "public",
        });
    
        // Basic example
        var notifications = new GitLab.ProjectLevelNotifications("notifications", new()
        {
            Project = example.Id,
            Level = "global",
        });
    
        // Custom notification example
        var custom = new GitLab.ProjectLevelNotifications("custom", new()
        {
            Project = example.Id,
            Level = "custom",
            NewMergeRequest = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.Project;
    import com.pulumi.gitlab.ProjectArgs;
    import com.pulumi.gitlab.ProjectLevelNotifications;
    import com.pulumi.gitlab.ProjectLevelNotificationsArgs;
    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 example = new Project("example", ProjectArgs.builder()
                .name("example project")
                .description("Lorem Ipsum")
                .visibilityLevel("public")
                .build());
    
            // Basic example
            var notifications = new ProjectLevelNotifications("notifications", ProjectLevelNotificationsArgs.builder()
                .project(example.id())
                .level("global")
                .build());
    
            // Custom notification example
            var custom = new ProjectLevelNotifications("custom", ProjectLevelNotificationsArgs.builder()
                .project(example.id())
                .level("custom")
                .newMergeRequest(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: gitlab:Project
        properties:
          name: example project
          description: Lorem Ipsum
          visibilityLevel: public
      # Basic example
      notifications:
        type: gitlab:ProjectLevelNotifications
        properties:
          project: ${example.id}
          level: global
      # Custom notification example
      custom:
        type: gitlab:ProjectLevelNotifications
        properties:
          project: ${example.id}
          level: custom
          newMergeRequest: true
    

    Create ProjectLevelNotifications Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectLevelNotifications(name: string, args: ProjectLevelNotificationsArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectLevelNotifications(resource_name: str,
                                  args: ProjectLevelNotificationsArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectLevelNotifications(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  project: Optional[str] = None,
                                  issue_due: Optional[bool] = None,
                                  new_note: Optional[bool] = None,
                                  fixed_pipeline: Optional[bool] = None,
                                  close_issue: Optional[bool] = None,
                                  level: Optional[str] = None,
                                  merge_merge_request: Optional[bool] = None,
                                  merge_when_pipeline_succeeds: Optional[bool] = None,
                                  moved_project: Optional[bool] = None,
                                  failed_pipeline: Optional[bool] = None,
                                  new_issue: Optional[bool] = None,
                                  new_merge_request: Optional[bool] = None,
                                  close_merge_request: Optional[bool] = None,
                                  push_to_merge_request: Optional[bool] = None,
                                  reassign_issue: Optional[bool] = None,
                                  reassign_merge_request: Optional[bool] = None,
                                  reopen_issue: Optional[bool] = None,
                                  reopen_merge_request: Optional[bool] = None,
                                  success_pipeline: Optional[bool] = None)
    func NewProjectLevelNotifications(ctx *Context, name string, args ProjectLevelNotificationsArgs, opts ...ResourceOption) (*ProjectLevelNotifications, error)
    public ProjectLevelNotifications(string name, ProjectLevelNotificationsArgs args, CustomResourceOptions? opts = null)
    public ProjectLevelNotifications(String name, ProjectLevelNotificationsArgs args)
    public ProjectLevelNotifications(String name, ProjectLevelNotificationsArgs args, CustomResourceOptions options)
    
    type: gitlab:ProjectLevelNotifications
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ProjectLevelNotificationsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectLevelNotificationsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProjectLevelNotificationsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectLevelNotificationsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectLevelNotificationsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var projectLevelNotificationsResource = new GitLab.ProjectLevelNotifications("projectLevelNotificationsResource", new()
    {
        Project = "string",
        IssueDue = false,
        NewNote = false,
        FixedPipeline = false,
        CloseIssue = false,
        Level = "string",
        MergeMergeRequest = false,
        MergeWhenPipelineSucceeds = false,
        MovedProject = false,
        FailedPipeline = false,
        NewIssue = false,
        NewMergeRequest = false,
        CloseMergeRequest = false,
        PushToMergeRequest = false,
        ReassignIssue = false,
        ReassignMergeRequest = false,
        ReopenIssue = false,
        ReopenMergeRequest = false,
        SuccessPipeline = false,
    });
    
    example, err := gitlab.NewProjectLevelNotifications(ctx, "projectLevelNotificationsResource", &gitlab.ProjectLevelNotificationsArgs{
    	Project:                   pulumi.String("string"),
    	IssueDue:                  pulumi.Bool(false),
    	NewNote:                   pulumi.Bool(false),
    	FixedPipeline:             pulumi.Bool(false),
    	CloseIssue:                pulumi.Bool(false),
    	Level:                     pulumi.String("string"),
    	MergeMergeRequest:         pulumi.Bool(false),
    	MergeWhenPipelineSucceeds: pulumi.Bool(false),
    	MovedProject:              pulumi.Bool(false),
    	FailedPipeline:            pulumi.Bool(false),
    	NewIssue:                  pulumi.Bool(false),
    	NewMergeRequest:           pulumi.Bool(false),
    	CloseMergeRequest:         pulumi.Bool(false),
    	PushToMergeRequest:        pulumi.Bool(false),
    	ReassignIssue:             pulumi.Bool(false),
    	ReassignMergeRequest:      pulumi.Bool(false),
    	ReopenIssue:               pulumi.Bool(false),
    	ReopenMergeRequest:        pulumi.Bool(false),
    	SuccessPipeline:           pulumi.Bool(false),
    })
    
    var projectLevelNotificationsResource = new ProjectLevelNotifications("projectLevelNotificationsResource", ProjectLevelNotificationsArgs.builder()
        .project("string")
        .issueDue(false)
        .newNote(false)
        .fixedPipeline(false)
        .closeIssue(false)
        .level("string")
        .mergeMergeRequest(false)
        .mergeWhenPipelineSucceeds(false)
        .movedProject(false)
        .failedPipeline(false)
        .newIssue(false)
        .newMergeRequest(false)
        .closeMergeRequest(false)
        .pushToMergeRequest(false)
        .reassignIssue(false)
        .reassignMergeRequest(false)
        .reopenIssue(false)
        .reopenMergeRequest(false)
        .successPipeline(false)
        .build());
    
    project_level_notifications_resource = gitlab.ProjectLevelNotifications("projectLevelNotificationsResource",
        project="string",
        issue_due=False,
        new_note=False,
        fixed_pipeline=False,
        close_issue=False,
        level="string",
        merge_merge_request=False,
        merge_when_pipeline_succeeds=False,
        moved_project=False,
        failed_pipeline=False,
        new_issue=False,
        new_merge_request=False,
        close_merge_request=False,
        push_to_merge_request=False,
        reassign_issue=False,
        reassign_merge_request=False,
        reopen_issue=False,
        reopen_merge_request=False,
        success_pipeline=False)
    
    const projectLevelNotificationsResource = new gitlab.ProjectLevelNotifications("projectLevelNotificationsResource", {
        project: "string",
        issueDue: false,
        newNote: false,
        fixedPipeline: false,
        closeIssue: false,
        level: "string",
        mergeMergeRequest: false,
        mergeWhenPipelineSucceeds: false,
        movedProject: false,
        failedPipeline: false,
        newIssue: false,
        newMergeRequest: false,
        closeMergeRequest: false,
        pushToMergeRequest: false,
        reassignIssue: false,
        reassignMergeRequest: false,
        reopenIssue: false,
        reopenMergeRequest: false,
        successPipeline: false,
    });
    
    type: gitlab:ProjectLevelNotifications
    properties:
        closeIssue: false
        closeMergeRequest: false
        failedPipeline: false
        fixedPipeline: false
        issueDue: false
        level: string
        mergeMergeRequest: false
        mergeWhenPipelineSucceeds: false
        movedProject: false
        newIssue: false
        newMergeRequest: false
        newNote: false
        project: string
        pushToMergeRequest: false
        reassignIssue: false
        reassignMergeRequest: false
        reopenIssue: false
        reopenMergeRequest: false
        successPipeline: false
    

    ProjectLevelNotifications Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ProjectLevelNotifications resource accepts the following input properties:

    Project string
    The ID or URL-encoded path of a project where notifications will be configured.
    CloseIssue bool
    Enable notifications for closed issues. Can only be used when level is custom.
    CloseMergeRequest bool
    Enable notifications for closed merge requests. Can only be used when level is custom.
    FailedPipeline bool
    Enable notifications for failed pipelines. Can only be used when level is custom.
    FixedPipeline bool
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    IssueDue bool
    Enable notifications for due issues. Can only be used when level is custom.
    Level string
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    MergeMergeRequest bool
    Enable notifications for merged merge requests. Can only be used when level is custom.
    MergeWhenPipelineSucceeds bool
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    MovedProject bool
    Enable notifications for moved projects. Can only be used when level is custom.
    NewIssue bool
    Enable notifications for new issues. Can only be used when level is custom.
    NewMergeRequest bool
    Enable notifications for new merge requests. Can only be used when level is custom.
    NewNote bool
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    PushToMergeRequest bool
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    ReassignIssue bool
    Enable notifications for issue reassignments. Can only be used when level is custom.
    ReassignMergeRequest bool
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    ReopenIssue bool
    Enable notifications for reopened issues. Can only be used when level is custom.
    ReopenMergeRequest bool
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    SuccessPipeline bool
    Enable notifications for successful pipelines. Can only be used when level is custom.
    Project string
    The ID or URL-encoded path of a project where notifications will be configured.
    CloseIssue bool
    Enable notifications for closed issues. Can only be used when level is custom.
    CloseMergeRequest bool
    Enable notifications for closed merge requests. Can only be used when level is custom.
    FailedPipeline bool
    Enable notifications for failed pipelines. Can only be used when level is custom.
    FixedPipeline bool
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    IssueDue bool
    Enable notifications for due issues. Can only be used when level is custom.
    Level string
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    MergeMergeRequest bool
    Enable notifications for merged merge requests. Can only be used when level is custom.
    MergeWhenPipelineSucceeds bool
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    MovedProject bool
    Enable notifications for moved projects. Can only be used when level is custom.
    NewIssue bool
    Enable notifications for new issues. Can only be used when level is custom.
    NewMergeRequest bool
    Enable notifications for new merge requests. Can only be used when level is custom.
    NewNote bool
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    PushToMergeRequest bool
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    ReassignIssue bool
    Enable notifications for issue reassignments. Can only be used when level is custom.
    ReassignMergeRequest bool
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    ReopenIssue bool
    Enable notifications for reopened issues. Can only be used when level is custom.
    ReopenMergeRequest bool
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    SuccessPipeline bool
    Enable notifications for successful pipelines. Can only be used when level is custom.
    project String
    The ID or URL-encoded path of a project where notifications will be configured.
    closeIssue Boolean
    Enable notifications for closed issues. Can only be used when level is custom.
    closeMergeRequest Boolean
    Enable notifications for closed merge requests. Can only be used when level is custom.
    failedPipeline Boolean
    Enable notifications for failed pipelines. Can only be used when level is custom.
    fixedPipeline Boolean
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    issueDue Boolean
    Enable notifications for due issues. Can only be used when level is custom.
    level String
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    mergeMergeRequest Boolean
    Enable notifications for merged merge requests. Can only be used when level is custom.
    mergeWhenPipelineSucceeds Boolean
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    movedProject Boolean
    Enable notifications for moved projects. Can only be used when level is custom.
    newIssue Boolean
    Enable notifications for new issues. Can only be used when level is custom.
    newMergeRequest Boolean
    Enable notifications for new merge requests. Can only be used when level is custom.
    newNote Boolean
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    pushToMergeRequest Boolean
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    reassignIssue Boolean
    Enable notifications for issue reassignments. Can only be used when level is custom.
    reassignMergeRequest Boolean
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    reopenIssue Boolean
    Enable notifications for reopened issues. Can only be used when level is custom.
    reopenMergeRequest Boolean
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    successPipeline Boolean
    Enable notifications for successful pipelines. Can only be used when level is custom.
    project string
    The ID or URL-encoded path of a project where notifications will be configured.
    closeIssue boolean
    Enable notifications for closed issues. Can only be used when level is custom.
    closeMergeRequest boolean
    Enable notifications for closed merge requests. Can only be used when level is custom.
    failedPipeline boolean
    Enable notifications for failed pipelines. Can only be used when level is custom.
    fixedPipeline boolean
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    issueDue boolean
    Enable notifications for due issues. Can only be used when level is custom.
    level string
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    mergeMergeRequest boolean
    Enable notifications for merged merge requests. Can only be used when level is custom.
    mergeWhenPipelineSucceeds boolean
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    movedProject boolean
    Enable notifications for moved projects. Can only be used when level is custom.
    newIssue boolean
    Enable notifications for new issues. Can only be used when level is custom.
    newMergeRequest boolean
    Enable notifications for new merge requests. Can only be used when level is custom.
    newNote boolean
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    pushToMergeRequest boolean
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    reassignIssue boolean
    Enable notifications for issue reassignments. Can only be used when level is custom.
    reassignMergeRequest boolean
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    reopenIssue boolean
    Enable notifications for reopened issues. Can only be used when level is custom.
    reopenMergeRequest boolean
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    successPipeline boolean
    Enable notifications for successful pipelines. Can only be used when level is custom.
    project str
    The ID or URL-encoded path of a project where notifications will be configured.
    close_issue bool
    Enable notifications for closed issues. Can only be used when level is custom.
    close_merge_request bool
    Enable notifications for closed merge requests. Can only be used when level is custom.
    failed_pipeline bool
    Enable notifications for failed pipelines. Can only be used when level is custom.
    fixed_pipeline bool
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    issue_due bool
    Enable notifications for due issues. Can only be used when level is custom.
    level str
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    merge_merge_request bool
    Enable notifications for merged merge requests. Can only be used when level is custom.
    merge_when_pipeline_succeeds bool
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    moved_project bool
    Enable notifications for moved projects. Can only be used when level is custom.
    new_issue bool
    Enable notifications for new issues. Can only be used when level is custom.
    new_merge_request bool
    Enable notifications for new merge requests. Can only be used when level is custom.
    new_note bool
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    push_to_merge_request bool
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    reassign_issue bool
    Enable notifications for issue reassignments. Can only be used when level is custom.
    reassign_merge_request bool
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    reopen_issue bool
    Enable notifications for reopened issues. Can only be used when level is custom.
    reopen_merge_request bool
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    success_pipeline bool
    Enable notifications for successful pipelines. Can only be used when level is custom.
    project String
    The ID or URL-encoded path of a project where notifications will be configured.
    closeIssue Boolean
    Enable notifications for closed issues. Can only be used when level is custom.
    closeMergeRequest Boolean
    Enable notifications for closed merge requests. Can only be used when level is custom.
    failedPipeline Boolean
    Enable notifications for failed pipelines. Can only be used when level is custom.
    fixedPipeline Boolean
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    issueDue Boolean
    Enable notifications for due issues. Can only be used when level is custom.
    level String
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    mergeMergeRequest Boolean
    Enable notifications for merged merge requests. Can only be used when level is custom.
    mergeWhenPipelineSucceeds Boolean
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    movedProject Boolean
    Enable notifications for moved projects. Can only be used when level is custom.
    newIssue Boolean
    Enable notifications for new issues. Can only be used when level is custom.
    newMergeRequest Boolean
    Enable notifications for new merge requests. Can only be used when level is custom.
    newNote Boolean
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    pushToMergeRequest Boolean
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    reassignIssue Boolean
    Enable notifications for issue reassignments. Can only be used when level is custom.
    reassignMergeRequest Boolean
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    reopenIssue Boolean
    Enable notifications for reopened issues. Can only be used when level is custom.
    reopenMergeRequest Boolean
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    successPipeline Boolean
    Enable notifications for successful pipelines. Can only be used when level is custom.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectLevelNotifications resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ProjectLevelNotifications Resource

    Get an existing ProjectLevelNotifications resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ProjectLevelNotificationsState, opts?: CustomResourceOptions): ProjectLevelNotifications
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            close_issue: Optional[bool] = None,
            close_merge_request: Optional[bool] = None,
            failed_pipeline: Optional[bool] = None,
            fixed_pipeline: Optional[bool] = None,
            issue_due: Optional[bool] = None,
            level: Optional[str] = None,
            merge_merge_request: Optional[bool] = None,
            merge_when_pipeline_succeeds: Optional[bool] = None,
            moved_project: Optional[bool] = None,
            new_issue: Optional[bool] = None,
            new_merge_request: Optional[bool] = None,
            new_note: Optional[bool] = None,
            project: Optional[str] = None,
            push_to_merge_request: Optional[bool] = None,
            reassign_issue: Optional[bool] = None,
            reassign_merge_request: Optional[bool] = None,
            reopen_issue: Optional[bool] = None,
            reopen_merge_request: Optional[bool] = None,
            success_pipeline: Optional[bool] = None) -> ProjectLevelNotifications
    func GetProjectLevelNotifications(ctx *Context, name string, id IDInput, state *ProjectLevelNotificationsState, opts ...ResourceOption) (*ProjectLevelNotifications, error)
    public static ProjectLevelNotifications Get(string name, Input<string> id, ProjectLevelNotificationsState? state, CustomResourceOptions? opts = null)
    public static ProjectLevelNotifications get(String name, Output<String> id, ProjectLevelNotificationsState state, CustomResourceOptions options)
    resources:  _:    type: gitlab:ProjectLevelNotifications    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CloseIssue bool
    Enable notifications for closed issues. Can only be used when level is custom.
    CloseMergeRequest bool
    Enable notifications for closed merge requests. Can only be used when level is custom.
    FailedPipeline bool
    Enable notifications for failed pipelines. Can only be used when level is custom.
    FixedPipeline bool
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    IssueDue bool
    Enable notifications for due issues. Can only be used when level is custom.
    Level string
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    MergeMergeRequest bool
    Enable notifications for merged merge requests. Can only be used when level is custom.
    MergeWhenPipelineSucceeds bool
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    MovedProject bool
    Enable notifications for moved projects. Can only be used when level is custom.
    NewIssue bool
    Enable notifications for new issues. Can only be used when level is custom.
    NewMergeRequest bool
    Enable notifications for new merge requests. Can only be used when level is custom.
    NewNote bool
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    Project string
    The ID or URL-encoded path of a project where notifications will be configured.
    PushToMergeRequest bool
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    ReassignIssue bool
    Enable notifications for issue reassignments. Can only be used when level is custom.
    ReassignMergeRequest bool
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    ReopenIssue bool
    Enable notifications for reopened issues. Can only be used when level is custom.
    ReopenMergeRequest bool
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    SuccessPipeline bool
    Enable notifications for successful pipelines. Can only be used when level is custom.
    CloseIssue bool
    Enable notifications for closed issues. Can only be used when level is custom.
    CloseMergeRequest bool
    Enable notifications for closed merge requests. Can only be used when level is custom.
    FailedPipeline bool
    Enable notifications for failed pipelines. Can only be used when level is custom.
    FixedPipeline bool
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    IssueDue bool
    Enable notifications for due issues. Can only be used when level is custom.
    Level string
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    MergeMergeRequest bool
    Enable notifications for merged merge requests. Can only be used when level is custom.
    MergeWhenPipelineSucceeds bool
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    MovedProject bool
    Enable notifications for moved projects. Can only be used when level is custom.
    NewIssue bool
    Enable notifications for new issues. Can only be used when level is custom.
    NewMergeRequest bool
    Enable notifications for new merge requests. Can only be used when level is custom.
    NewNote bool
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    Project string
    The ID or URL-encoded path of a project where notifications will be configured.
    PushToMergeRequest bool
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    ReassignIssue bool
    Enable notifications for issue reassignments. Can only be used when level is custom.
    ReassignMergeRequest bool
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    ReopenIssue bool
    Enable notifications for reopened issues. Can only be used when level is custom.
    ReopenMergeRequest bool
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    SuccessPipeline bool
    Enable notifications for successful pipelines. Can only be used when level is custom.
    closeIssue Boolean
    Enable notifications for closed issues. Can only be used when level is custom.
    closeMergeRequest Boolean
    Enable notifications for closed merge requests. Can only be used when level is custom.
    failedPipeline Boolean
    Enable notifications for failed pipelines. Can only be used when level is custom.
    fixedPipeline Boolean
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    issueDue Boolean
    Enable notifications for due issues. Can only be used when level is custom.
    level String
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    mergeMergeRequest Boolean
    Enable notifications for merged merge requests. Can only be used when level is custom.
    mergeWhenPipelineSucceeds Boolean
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    movedProject Boolean
    Enable notifications for moved projects. Can only be used when level is custom.
    newIssue Boolean
    Enable notifications for new issues. Can only be used when level is custom.
    newMergeRequest Boolean
    Enable notifications for new merge requests. Can only be used when level is custom.
    newNote Boolean
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    project String
    The ID or URL-encoded path of a project where notifications will be configured.
    pushToMergeRequest Boolean
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    reassignIssue Boolean
    Enable notifications for issue reassignments. Can only be used when level is custom.
    reassignMergeRequest Boolean
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    reopenIssue Boolean
    Enable notifications for reopened issues. Can only be used when level is custom.
    reopenMergeRequest Boolean
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    successPipeline Boolean
    Enable notifications for successful pipelines. Can only be used when level is custom.
    closeIssue boolean
    Enable notifications for closed issues. Can only be used when level is custom.
    closeMergeRequest boolean
    Enable notifications for closed merge requests. Can only be used when level is custom.
    failedPipeline boolean
    Enable notifications for failed pipelines. Can only be used when level is custom.
    fixedPipeline boolean
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    issueDue boolean
    Enable notifications for due issues. Can only be used when level is custom.
    level string
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    mergeMergeRequest boolean
    Enable notifications for merged merge requests. Can only be used when level is custom.
    mergeWhenPipelineSucceeds boolean
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    movedProject boolean
    Enable notifications for moved projects. Can only be used when level is custom.
    newIssue boolean
    Enable notifications for new issues. Can only be used when level is custom.
    newMergeRequest boolean
    Enable notifications for new merge requests. Can only be used when level is custom.
    newNote boolean
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    project string
    The ID or URL-encoded path of a project where notifications will be configured.
    pushToMergeRequest boolean
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    reassignIssue boolean
    Enable notifications for issue reassignments. Can only be used when level is custom.
    reassignMergeRequest boolean
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    reopenIssue boolean
    Enable notifications for reopened issues. Can only be used when level is custom.
    reopenMergeRequest boolean
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    successPipeline boolean
    Enable notifications for successful pipelines. Can only be used when level is custom.
    close_issue bool
    Enable notifications for closed issues. Can only be used when level is custom.
    close_merge_request bool
    Enable notifications for closed merge requests. Can only be used when level is custom.
    failed_pipeline bool
    Enable notifications for failed pipelines. Can only be used when level is custom.
    fixed_pipeline bool
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    issue_due bool
    Enable notifications for due issues. Can only be used when level is custom.
    level str
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    merge_merge_request bool
    Enable notifications for merged merge requests. Can only be used when level is custom.
    merge_when_pipeline_succeeds bool
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    moved_project bool
    Enable notifications for moved projects. Can only be used when level is custom.
    new_issue bool
    Enable notifications for new issues. Can only be used when level is custom.
    new_merge_request bool
    Enable notifications for new merge requests. Can only be used when level is custom.
    new_note bool
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    project str
    The ID or URL-encoded path of a project where notifications will be configured.
    push_to_merge_request bool
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    reassign_issue bool
    Enable notifications for issue reassignments. Can only be used when level is custom.
    reassign_merge_request bool
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    reopen_issue bool
    Enable notifications for reopened issues. Can only be used when level is custom.
    reopen_merge_request bool
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    success_pipeline bool
    Enable notifications for successful pipelines. Can only be used when level is custom.
    closeIssue Boolean
    Enable notifications for closed issues. Can only be used when level is custom.
    closeMergeRequest Boolean
    Enable notifications for closed merge requests. Can only be used when level is custom.
    failedPipeline Boolean
    Enable notifications for failed pipelines. Can only be used when level is custom.
    fixedPipeline Boolean
    Enable notifications for fixed pipelines. Can only be used when level is custom.
    issueDue Boolean
    Enable notifications for due issues. Can only be used when level is custom.
    level String
    The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.
    mergeMergeRequest Boolean
    Enable notifications for merged merge requests. Can only be used when level is custom.
    mergeWhenPipelineSucceeds Boolean
    Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.
    movedProject Boolean
    Enable notifications for moved projects. Can only be used when level is custom.
    newIssue Boolean
    Enable notifications for new issues. Can only be used when level is custom.
    newMergeRequest Boolean
    Enable notifications for new merge requests. Can only be used when level is custom.
    newNote Boolean
    Enable notifications for new notes on merge requests. Can only be used when level is custom.
    project String
    The ID or URL-encoded path of a project where notifications will be configured.
    pushToMergeRequest Boolean
    Enable notifications for push to merge request branches. Can only be used when level is custom.
    reassignIssue Boolean
    Enable notifications for issue reassignments. Can only be used when level is custom.
    reassignMergeRequest Boolean
    Enable notifications for merge request reassignments. Can only be used when level is custom.
    reopenIssue Boolean
    Enable notifications for reopened issues. Can only be used when level is custom.
    reopenMergeRequest Boolean
    Enable notifications for reopened merge requests. Can only be used when level is custom.
    successPipeline Boolean
    Enable notifications for successful pipelines. Can only be used when level is custom.

    Import

    Starting in Terraform v1.5.0, you can use an import block to import gitlab_project_level_notifications. For example:

    terraform

    import {

    to = gitlab_project_level_notifications.example

    id = “see CLI command below for ID”

    }

    Importing using the CLI is supported with the following syntax:

    A GitLab Project level notification can be imported using a key composed of <project-id>, for example:

    $ pulumi import gitlab:index/projectLevelNotifications:ProjectLevelNotifications example "12345"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    GitLab v9.2.0 published on Friday, Jul 18, 2025 by Pulumi