1. Packages
  2. Gitlab Provider
  3. API Docs
  4. IntegrationMattermost
GitLab v8.5.0 published on Friday, Oct 18, 2024 by Pulumi

gitlab.IntegrationMattermost

Explore with Pulumi AI

gitlab logo
GitLab v8.5.0 published on Friday, Oct 18, 2024 by Pulumi

    The gitlab.IntegrationMattermost resource allows to manage the lifecycle of a project integration with Mattermost.

    Upstream API: GitLab REST API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const awesomeProject = new gitlab.Project("awesome_project", {
        name: "awesome_project",
        description: "My awesome project.",
        visibilityLevel: "public",
    });
    const mattermost = new gitlab.IntegrationMattermost("mattermost", {
        project: awesomeProject.id,
        webhook: "https://webhook.com",
        username: "myuser",
        pushEvents: true,
        pushChannel: "push_chan",
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    awesome_project = gitlab.Project("awesome_project",
        name="awesome_project",
        description="My awesome project.",
        visibility_level="public")
    mattermost = gitlab.IntegrationMattermost("mattermost",
        project=awesome_project.id,
        webhook="https://webhook.com",
        username="myuser",
        push_events=True,
        push_channel="push_chan")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		awesomeProject, err := gitlab.NewProject(ctx, "awesome_project", &gitlab.ProjectArgs{
    			Name:            pulumi.String("awesome_project"),
    			Description:     pulumi.String("My awesome project."),
    			VisibilityLevel: pulumi.String("public"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gitlab.NewIntegrationMattermost(ctx, "mattermost", &gitlab.IntegrationMattermostArgs{
    			Project:     awesomeProject.ID(),
    			Webhook:     pulumi.String("https://webhook.com"),
    			Username:    pulumi.String("myuser"),
    			PushEvents:  pulumi.Bool(true),
    			PushChannel: pulumi.String("push_chan"),
    		})
    		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 awesomeProject = new GitLab.Project("awesome_project", new()
        {
            Name = "awesome_project",
            Description = "My awesome project.",
            VisibilityLevel = "public",
        });
    
        var mattermost = new GitLab.IntegrationMattermost("mattermost", new()
        {
            Project = awesomeProject.Id,
            Webhook = "https://webhook.com",
            Username = "myuser",
            PushEvents = true,
            PushChannel = "push_chan",
        });
    
    });
    
    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.IntegrationMattermost;
    import com.pulumi.gitlab.IntegrationMattermostArgs;
    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 awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
                .name("awesome_project")
                .description("My awesome project.")
                .visibilityLevel("public")
                .build());
    
            var mattermost = new IntegrationMattermost("mattermost", IntegrationMattermostArgs.builder()
                .project(awesomeProject.id())
                .webhook("https://webhook.com")
                .username("myuser")
                .pushEvents(true)
                .pushChannel("push_chan")
                .build());
    
        }
    }
    
    resources:
      awesomeProject:
        type: gitlab:Project
        name: awesome_project
        properties:
          name: awesome_project
          description: My awesome project.
          visibilityLevel: public
      mattermost:
        type: gitlab:IntegrationMattermost
        properties:
          project: ${awesomeProject.id}
          webhook: https://webhook.com
          username: myuser
          pushEvents: true
          pushChannel: push_chan
    

    Create IntegrationMattermost Resource

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

    Constructor syntax

    new IntegrationMattermost(name: string, args: IntegrationMattermostArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationMattermost(resource_name: str,
                              args: IntegrationMattermostArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationMattermost(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              project: Optional[str] = None,
                              webhook: Optional[str] = None,
                              note_events: Optional[bool] = None,
                              pipeline_events: Optional[bool] = None,
                              confidential_note_events: Optional[bool] = None,
                              issue_channel: Optional[str] = None,
                              issues_events: Optional[bool] = None,
                              merge_request_channel: Optional[str] = None,
                              merge_requests_events: Optional[bool] = None,
                              note_channel: Optional[str] = None,
                              branches_to_be_notified: Optional[str] = None,
                              notify_only_broken_pipelines: Optional[bool] = None,
                              pipeline_channel: Optional[str] = None,
                              confidential_note_channel: Optional[str] = None,
                              confidential_issues_events: Optional[bool] = None,
                              push_channel: Optional[str] = None,
                              push_events: Optional[bool] = None,
                              tag_push_channel: Optional[str] = None,
                              tag_push_events: Optional[bool] = None,
                              username: Optional[str] = None,
                              confidential_issue_channel: Optional[str] = None,
                              wiki_page_channel: Optional[str] = None,
                              wiki_page_events: Optional[bool] = None)
    func NewIntegrationMattermost(ctx *Context, name string, args IntegrationMattermostArgs, opts ...ResourceOption) (*IntegrationMattermost, error)
    public IntegrationMattermost(string name, IntegrationMattermostArgs args, CustomResourceOptions? opts = null)
    public IntegrationMattermost(String name, IntegrationMattermostArgs args)
    public IntegrationMattermost(String name, IntegrationMattermostArgs args, CustomResourceOptions options)
    
    type: gitlab:IntegrationMattermost
    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 IntegrationMattermostArgs
    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 IntegrationMattermostArgs
    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 IntegrationMattermostArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationMattermostArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationMattermostArgs
    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 integrationMattermostResource = new GitLab.IntegrationMattermost("integrationMattermostResource", new()
    {
        Project = "string",
        Webhook = "string",
        NoteEvents = false,
        PipelineEvents = false,
        ConfidentialNoteEvents = false,
        IssueChannel = "string",
        IssuesEvents = false,
        MergeRequestChannel = "string",
        MergeRequestsEvents = false,
        NoteChannel = "string",
        BranchesToBeNotified = "string",
        NotifyOnlyBrokenPipelines = false,
        PipelineChannel = "string",
        ConfidentialNoteChannel = "string",
        ConfidentialIssuesEvents = false,
        PushChannel = "string",
        PushEvents = false,
        TagPushChannel = "string",
        TagPushEvents = false,
        Username = "string",
        ConfidentialIssueChannel = "string",
        WikiPageChannel = "string",
        WikiPageEvents = false,
    });
    
    example, err := gitlab.NewIntegrationMattermost(ctx, "integrationMattermostResource", &gitlab.IntegrationMattermostArgs{
    	Project:                   pulumi.String("string"),
    	Webhook:                   pulumi.String("string"),
    	NoteEvents:                pulumi.Bool(false),
    	PipelineEvents:            pulumi.Bool(false),
    	ConfidentialNoteEvents:    pulumi.Bool(false),
    	IssueChannel:              pulumi.String("string"),
    	IssuesEvents:              pulumi.Bool(false),
    	MergeRequestChannel:       pulumi.String("string"),
    	MergeRequestsEvents:       pulumi.Bool(false),
    	NoteChannel:               pulumi.String("string"),
    	BranchesToBeNotified:      pulumi.String("string"),
    	NotifyOnlyBrokenPipelines: pulumi.Bool(false),
    	PipelineChannel:           pulumi.String("string"),
    	ConfidentialNoteChannel:   pulumi.String("string"),
    	ConfidentialIssuesEvents:  pulumi.Bool(false),
    	PushChannel:               pulumi.String("string"),
    	PushEvents:                pulumi.Bool(false),
    	TagPushChannel:            pulumi.String("string"),
    	TagPushEvents:             pulumi.Bool(false),
    	Username:                  pulumi.String("string"),
    	ConfidentialIssueChannel:  pulumi.String("string"),
    	WikiPageChannel:           pulumi.String("string"),
    	WikiPageEvents:            pulumi.Bool(false),
    })
    
    var integrationMattermostResource = new IntegrationMattermost("integrationMattermostResource", IntegrationMattermostArgs.builder()
        .project("string")
        .webhook("string")
        .noteEvents(false)
        .pipelineEvents(false)
        .confidentialNoteEvents(false)
        .issueChannel("string")
        .issuesEvents(false)
        .mergeRequestChannel("string")
        .mergeRequestsEvents(false)
        .noteChannel("string")
        .branchesToBeNotified("string")
        .notifyOnlyBrokenPipelines(false)
        .pipelineChannel("string")
        .confidentialNoteChannel("string")
        .confidentialIssuesEvents(false)
        .pushChannel("string")
        .pushEvents(false)
        .tagPushChannel("string")
        .tagPushEvents(false)
        .username("string")
        .confidentialIssueChannel("string")
        .wikiPageChannel("string")
        .wikiPageEvents(false)
        .build());
    
    integration_mattermost_resource = gitlab.IntegrationMattermost("integrationMattermostResource",
        project="string",
        webhook="string",
        note_events=False,
        pipeline_events=False,
        confidential_note_events=False,
        issue_channel="string",
        issues_events=False,
        merge_request_channel="string",
        merge_requests_events=False,
        note_channel="string",
        branches_to_be_notified="string",
        notify_only_broken_pipelines=False,
        pipeline_channel="string",
        confidential_note_channel="string",
        confidential_issues_events=False,
        push_channel="string",
        push_events=False,
        tag_push_channel="string",
        tag_push_events=False,
        username="string",
        confidential_issue_channel="string",
        wiki_page_channel="string",
        wiki_page_events=False)
    
    const integrationMattermostResource = new gitlab.IntegrationMattermost("integrationMattermostResource", {
        project: "string",
        webhook: "string",
        noteEvents: false,
        pipelineEvents: false,
        confidentialNoteEvents: false,
        issueChannel: "string",
        issuesEvents: false,
        mergeRequestChannel: "string",
        mergeRequestsEvents: false,
        noteChannel: "string",
        branchesToBeNotified: "string",
        notifyOnlyBrokenPipelines: false,
        pipelineChannel: "string",
        confidentialNoteChannel: "string",
        confidentialIssuesEvents: false,
        pushChannel: "string",
        pushEvents: false,
        tagPushChannel: "string",
        tagPushEvents: false,
        username: "string",
        confidentialIssueChannel: "string",
        wikiPageChannel: "string",
        wikiPageEvents: false,
    });
    
    type: gitlab:IntegrationMattermost
    properties:
        branchesToBeNotified: string
        confidentialIssueChannel: string
        confidentialIssuesEvents: false
        confidentialNoteChannel: string
        confidentialNoteEvents: false
        issueChannel: string
        issuesEvents: false
        mergeRequestChannel: string
        mergeRequestsEvents: false
        noteChannel: string
        noteEvents: false
        notifyOnlyBrokenPipelines: false
        pipelineChannel: string
        pipelineEvents: false
        project: string
        pushChannel: string
        pushEvents: false
        tagPushChannel: string
        tagPushEvents: false
        username: string
        webhook: string
        wikiPageChannel: string
        wikiPageEvents: false
    

    IntegrationMattermost 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 IntegrationMattermost resource accepts the following input properties:

    Project string
    ID of the project you want to activate integration on.
    Webhook string
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    BranchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    ConfidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    ConfidentialIssuesEvents bool
    Enable notifications for confidential issues events.
    ConfidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    ConfidentialNoteEvents bool
    Enable notifications for confidential note events.
    IssueChannel string
    The name of the channel to receive issue events notifications.
    IssuesEvents bool
    Enable notifications for issues events.
    MergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    MergeRequestsEvents bool
    Enable notifications for merge requests events.
    NoteChannel string
    The name of the channel to receive note events notifications.
    NoteEvents bool
    Enable notifications for note events.
    NotifyOnlyBrokenPipelines bool
    Send notifications for broken pipelines.
    PipelineChannel string
    The name of the channel to receive pipeline events notifications.
    PipelineEvents bool
    Enable notifications for pipeline events.
    PushChannel string
    The name of the channel to receive push events notifications.
    PushEvents bool
    Enable notifications for push events.
    TagPushChannel string
    The name of the channel to receive tag push events notifications.
    TagPushEvents bool
    Enable notifications for tag push events.
    Username string
    Username to use.
    WikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    WikiPageEvents bool
    Enable notifications for wiki page events.
    Project string
    ID of the project you want to activate integration on.
    Webhook string
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    BranchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    ConfidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    ConfidentialIssuesEvents bool
    Enable notifications for confidential issues events.
    ConfidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    ConfidentialNoteEvents bool
    Enable notifications for confidential note events.
    IssueChannel string
    The name of the channel to receive issue events notifications.
    IssuesEvents bool
    Enable notifications for issues events.
    MergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    MergeRequestsEvents bool
    Enable notifications for merge requests events.
    NoteChannel string
    The name of the channel to receive note events notifications.
    NoteEvents bool
    Enable notifications for note events.
    NotifyOnlyBrokenPipelines bool
    Send notifications for broken pipelines.
    PipelineChannel string
    The name of the channel to receive pipeline events notifications.
    PipelineEvents bool
    Enable notifications for pipeline events.
    PushChannel string
    The name of the channel to receive push events notifications.
    PushEvents bool
    Enable notifications for push events.
    TagPushChannel string
    The name of the channel to receive tag push events notifications.
    TagPushEvents bool
    Enable notifications for tag push events.
    Username string
    Username to use.
    WikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    WikiPageEvents bool
    Enable notifications for wiki page events.
    project String
    ID of the project you want to activate integration on.
    webhook String
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    branchesToBeNotified String
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel String
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents Boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel String
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents Boolean
    Enable notifications for confidential note events.
    issueChannel String
    The name of the channel to receive issue events notifications.
    issuesEvents Boolean
    Enable notifications for issues events.
    mergeRequestChannel String
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents Boolean
    Enable notifications for merge requests events.
    noteChannel String
    The name of the channel to receive note events notifications.
    noteEvents Boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines Boolean
    Send notifications for broken pipelines.
    pipelineChannel String
    The name of the channel to receive pipeline events notifications.
    pipelineEvents Boolean
    Enable notifications for pipeline events.
    pushChannel String
    The name of the channel to receive push events notifications.
    pushEvents Boolean
    Enable notifications for push events.
    tagPushChannel String
    The name of the channel to receive tag push events notifications.
    tagPushEvents Boolean
    Enable notifications for tag push events.
    username String
    Username to use.
    wikiPageChannel String
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents Boolean
    Enable notifications for wiki page events.
    project string
    ID of the project you want to activate integration on.
    webhook string
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    branchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents boolean
    Enable notifications for confidential note events.
    issueChannel string
    The name of the channel to receive issue events notifications.
    issuesEvents boolean
    Enable notifications for issues events.
    mergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents boolean
    Enable notifications for merge requests events.
    noteChannel string
    The name of the channel to receive note events notifications.
    noteEvents boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines boolean
    Send notifications for broken pipelines.
    pipelineChannel string
    The name of the channel to receive pipeline events notifications.
    pipelineEvents boolean
    Enable notifications for pipeline events.
    pushChannel string
    The name of the channel to receive push events notifications.
    pushEvents boolean
    Enable notifications for push events.
    tagPushChannel string
    The name of the channel to receive tag push events notifications.
    tagPushEvents boolean
    Enable notifications for tag push events.
    username string
    Username to use.
    wikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents boolean
    Enable notifications for wiki page events.
    project str
    ID of the project you want to activate integration on.
    webhook str
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    branches_to_be_notified str
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidential_issue_channel str
    The name of the channel to receive confidential issue events notifications.
    confidential_issues_events bool
    Enable notifications for confidential issues events.
    confidential_note_channel str
    The name of the channel to receive confidential note events notifications.
    confidential_note_events bool
    Enable notifications for confidential note events.
    issue_channel str
    The name of the channel to receive issue events notifications.
    issues_events bool
    Enable notifications for issues events.
    merge_request_channel str
    The name of the channel to receive merge request events notifications.
    merge_requests_events bool
    Enable notifications for merge requests events.
    note_channel str
    The name of the channel to receive note events notifications.
    note_events bool
    Enable notifications for note events.
    notify_only_broken_pipelines bool
    Send notifications for broken pipelines.
    pipeline_channel str
    The name of the channel to receive pipeline events notifications.
    pipeline_events bool
    Enable notifications for pipeline events.
    push_channel str
    The name of the channel to receive push events notifications.
    push_events bool
    Enable notifications for push events.
    tag_push_channel str
    The name of the channel to receive tag push events notifications.
    tag_push_events bool
    Enable notifications for tag push events.
    username str
    Username to use.
    wiki_page_channel str
    The name of the channel to receive wiki page events notifications.
    wiki_page_events bool
    Enable notifications for wiki page events.
    project String
    ID of the project you want to activate integration on.
    webhook String
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    branchesToBeNotified String
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel String
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents Boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel String
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents Boolean
    Enable notifications for confidential note events.
    issueChannel String
    The name of the channel to receive issue events notifications.
    issuesEvents Boolean
    Enable notifications for issues events.
    mergeRequestChannel String
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents Boolean
    Enable notifications for merge requests events.
    noteChannel String
    The name of the channel to receive note events notifications.
    noteEvents Boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines Boolean
    Send notifications for broken pipelines.
    pipelineChannel String
    The name of the channel to receive pipeline events notifications.
    pipelineEvents Boolean
    Enable notifications for pipeline events.
    pushChannel String
    The name of the channel to receive push events notifications.
    pushEvents Boolean
    Enable notifications for push events.
    tagPushChannel String
    The name of the channel to receive tag push events notifications.
    tagPushEvents Boolean
    Enable notifications for tag push events.
    username String
    Username to use.
    wikiPageChannel String
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents Boolean
    Enable notifications for wiki page events.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IntegrationMattermost 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 IntegrationMattermost Resource

    Get an existing IntegrationMattermost 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?: IntegrationMattermostState, opts?: CustomResourceOptions): IntegrationMattermost
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            branches_to_be_notified: Optional[str] = None,
            confidential_issue_channel: Optional[str] = None,
            confidential_issues_events: Optional[bool] = None,
            confidential_note_channel: Optional[str] = None,
            confidential_note_events: Optional[bool] = None,
            issue_channel: Optional[str] = None,
            issues_events: Optional[bool] = None,
            merge_request_channel: Optional[str] = None,
            merge_requests_events: Optional[bool] = None,
            note_channel: Optional[str] = None,
            note_events: Optional[bool] = None,
            notify_only_broken_pipelines: Optional[bool] = None,
            pipeline_channel: Optional[str] = None,
            pipeline_events: Optional[bool] = None,
            project: Optional[str] = None,
            push_channel: Optional[str] = None,
            push_events: Optional[bool] = None,
            tag_push_channel: Optional[str] = None,
            tag_push_events: Optional[bool] = None,
            username: Optional[str] = None,
            webhook: Optional[str] = None,
            wiki_page_channel: Optional[str] = None,
            wiki_page_events: Optional[bool] = None) -> IntegrationMattermost
    func GetIntegrationMattermost(ctx *Context, name string, id IDInput, state *IntegrationMattermostState, opts ...ResourceOption) (*IntegrationMattermost, error)
    public static IntegrationMattermost Get(string name, Input<string> id, IntegrationMattermostState? state, CustomResourceOptions? opts = null)
    public static IntegrationMattermost get(String name, Output<String> id, IntegrationMattermostState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    BranchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    ConfidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    ConfidentialIssuesEvents bool
    Enable notifications for confidential issues events.
    ConfidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    ConfidentialNoteEvents bool
    Enable notifications for confidential note events.
    IssueChannel string
    The name of the channel to receive issue events notifications.
    IssuesEvents bool
    Enable notifications for issues events.
    MergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    MergeRequestsEvents bool
    Enable notifications for merge requests events.
    NoteChannel string
    The name of the channel to receive note events notifications.
    NoteEvents bool
    Enable notifications for note events.
    NotifyOnlyBrokenPipelines bool
    Send notifications for broken pipelines.
    PipelineChannel string
    The name of the channel to receive pipeline events notifications.
    PipelineEvents bool
    Enable notifications for pipeline events.
    Project string
    ID of the project you want to activate integration on.
    PushChannel string
    The name of the channel to receive push events notifications.
    PushEvents bool
    Enable notifications for push events.
    TagPushChannel string
    The name of the channel to receive tag push events notifications.
    TagPushEvents bool
    Enable notifications for tag push events.
    Username string
    Username to use.
    Webhook string
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    WikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    WikiPageEvents bool
    Enable notifications for wiki page events.
    BranchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    ConfidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    ConfidentialIssuesEvents bool
    Enable notifications for confidential issues events.
    ConfidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    ConfidentialNoteEvents bool
    Enable notifications for confidential note events.
    IssueChannel string
    The name of the channel to receive issue events notifications.
    IssuesEvents bool
    Enable notifications for issues events.
    MergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    MergeRequestsEvents bool
    Enable notifications for merge requests events.
    NoteChannel string
    The name of the channel to receive note events notifications.
    NoteEvents bool
    Enable notifications for note events.
    NotifyOnlyBrokenPipelines bool
    Send notifications for broken pipelines.
    PipelineChannel string
    The name of the channel to receive pipeline events notifications.
    PipelineEvents bool
    Enable notifications for pipeline events.
    Project string
    ID of the project you want to activate integration on.
    PushChannel string
    The name of the channel to receive push events notifications.
    PushEvents bool
    Enable notifications for push events.
    TagPushChannel string
    The name of the channel to receive tag push events notifications.
    TagPushEvents bool
    Enable notifications for tag push events.
    Username string
    Username to use.
    Webhook string
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    WikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    WikiPageEvents bool
    Enable notifications for wiki page events.
    branchesToBeNotified String
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel String
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents Boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel String
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents Boolean
    Enable notifications for confidential note events.
    issueChannel String
    The name of the channel to receive issue events notifications.
    issuesEvents Boolean
    Enable notifications for issues events.
    mergeRequestChannel String
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents Boolean
    Enable notifications for merge requests events.
    noteChannel String
    The name of the channel to receive note events notifications.
    noteEvents Boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines Boolean
    Send notifications for broken pipelines.
    pipelineChannel String
    The name of the channel to receive pipeline events notifications.
    pipelineEvents Boolean
    Enable notifications for pipeline events.
    project String
    ID of the project you want to activate integration on.
    pushChannel String
    The name of the channel to receive push events notifications.
    pushEvents Boolean
    Enable notifications for push events.
    tagPushChannel String
    The name of the channel to receive tag push events notifications.
    tagPushEvents Boolean
    Enable notifications for tag push events.
    username String
    Username to use.
    webhook String
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    wikiPageChannel String
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents Boolean
    Enable notifications for wiki page events.
    branchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents boolean
    Enable notifications for confidential note events.
    issueChannel string
    The name of the channel to receive issue events notifications.
    issuesEvents boolean
    Enable notifications for issues events.
    mergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents boolean
    Enable notifications for merge requests events.
    noteChannel string
    The name of the channel to receive note events notifications.
    noteEvents boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines boolean
    Send notifications for broken pipelines.
    pipelineChannel string
    The name of the channel to receive pipeline events notifications.
    pipelineEvents boolean
    Enable notifications for pipeline events.
    project string
    ID of the project you want to activate integration on.
    pushChannel string
    The name of the channel to receive push events notifications.
    pushEvents boolean
    Enable notifications for push events.
    tagPushChannel string
    The name of the channel to receive tag push events notifications.
    tagPushEvents boolean
    Enable notifications for tag push events.
    username string
    Username to use.
    webhook string
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    wikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents boolean
    Enable notifications for wiki page events.
    branches_to_be_notified str
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidential_issue_channel str
    The name of the channel to receive confidential issue events notifications.
    confidential_issues_events bool
    Enable notifications for confidential issues events.
    confidential_note_channel str
    The name of the channel to receive confidential note events notifications.
    confidential_note_events bool
    Enable notifications for confidential note events.
    issue_channel str
    The name of the channel to receive issue events notifications.
    issues_events bool
    Enable notifications for issues events.
    merge_request_channel str
    The name of the channel to receive merge request events notifications.
    merge_requests_events bool
    Enable notifications for merge requests events.
    note_channel str
    The name of the channel to receive note events notifications.
    note_events bool
    Enable notifications for note events.
    notify_only_broken_pipelines bool
    Send notifications for broken pipelines.
    pipeline_channel str
    The name of the channel to receive pipeline events notifications.
    pipeline_events bool
    Enable notifications for pipeline events.
    project str
    ID of the project you want to activate integration on.
    push_channel str
    The name of the channel to receive push events notifications.
    push_events bool
    Enable notifications for push events.
    tag_push_channel str
    The name of the channel to receive tag push events notifications.
    tag_push_events bool
    Enable notifications for tag push events.
    username str
    Username to use.
    webhook str
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    wiki_page_channel str
    The name of the channel to receive wiki page events notifications.
    wiki_page_events bool
    Enable notifications for wiki page events.
    branchesToBeNotified String
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel String
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents Boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel String
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents Boolean
    Enable notifications for confidential note events.
    issueChannel String
    The name of the channel to receive issue events notifications.
    issuesEvents Boolean
    Enable notifications for issues events.
    mergeRequestChannel String
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents Boolean
    Enable notifications for merge requests events.
    noteChannel String
    The name of the channel to receive note events notifications.
    noteEvents Boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines Boolean
    Send notifications for broken pipelines.
    pipelineChannel String
    The name of the channel to receive pipeline events notifications.
    pipelineEvents Boolean
    Enable notifications for pipeline events.
    project String
    ID of the project you want to activate integration on.
    pushChannel String
    The name of the channel to receive push events notifications.
    pushEvents Boolean
    Enable notifications for push events.
    tagPushChannel String
    The name of the channel to receive tag push events notifications.
    tagPushEvents Boolean
    Enable notifications for tag push events.
    username String
    Username to use.
    webhook String
    Webhook URL (Example, https://mattermost.yourdomain.com/hooks/...). This value cannot be imported.
    wikiPageChannel String
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents Boolean
    Enable notifications for wiki page events.

    Import

    You can import a gitlab_integration_mattermost.mattermost state using the project ID, e.g.

    $ pulumi import gitlab:index/integrationMattermost:IntegrationMattermost mattermost 1
    

    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 v8.5.0 published on Friday, Oct 18, 2024 by Pulumi