1. Packages
  2. Gitlab Provider
  3. API Docs
  4. IntegrationSlack
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

gitlab.IntegrationSlack

Explore with Pulumi AI

The gitlab.IntegrationSlack resource allows to manage the lifecycle of a project integration with Slack.

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 slack = new gitlab.IntegrationSlack("slack", {
    project: awesomeProject.id,
    webhook: "https://webhook.com",
    username: "myuser",
    pushEvents: true,
    pushChannel: "push_chan",
});
Copy
import pulumi
import pulumi_gitlab as gitlab

awesome_project = gitlab.Project("awesome_project",
    name="awesome_project",
    description="My awesome project.",
    visibility_level="public")
slack = gitlab.IntegrationSlack("slack",
    project=awesome_project.id,
    webhook="https://webhook.com",
    username="myuser",
    push_events=True,
    push_channel="push_chan")
Copy
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.NewIntegrationSlack(ctx, "slack", &gitlab.IntegrationSlackArgs{
			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
	})
}
Copy
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 slack = new GitLab.IntegrationSlack("slack", new()
    {
        Project = awesomeProject.Id,
        Webhook = "https://webhook.com",
        Username = "myuser",
        PushEvents = true,
        PushChannel = "push_chan",
    });

});
Copy
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.IntegrationSlack;
import com.pulumi.gitlab.IntegrationSlackArgs;
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 slack = new IntegrationSlack("slack", IntegrationSlackArgs.builder()
            .project(awesomeProject.id())
            .webhook("https://webhook.com")
            .username("myuser")
            .pushEvents(true)
            .pushChannel("push_chan")
            .build());

    }
}
Copy
resources:
  awesomeProject:
    type: gitlab:Project
    name: awesome_project
    properties:
      name: awesome_project
      description: My awesome project.
      visibilityLevel: public
  slack:
    type: gitlab:IntegrationSlack
    properties:
      project: ${awesomeProject.id}
      webhook: https://webhook.com
      username: myuser
      pushEvents: true
      pushChannel: push_chan
Copy

Create IntegrationSlack Resource

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

Constructor syntax

new IntegrationSlack(name: string, args: IntegrationSlackArgs, opts?: CustomResourceOptions);
@overload
def IntegrationSlack(resource_name: str,
                     args: IntegrationSlackArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def IntegrationSlack(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     project: Optional[str] = None,
                     webhook: Optional[str] = None,
                     notify_only_default_branch: Optional[bool] = None,
                     pipeline_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,
                     pipeline_events: Optional[bool] = None,
                     confidential_note_channel: Optional[str] = None,
                     branches_to_be_notified: Optional[str] = None,
                     notify_only_broken_pipelines: Optional[bool] = 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 NewIntegrationSlack(ctx *Context, name string, args IntegrationSlackArgs, opts ...ResourceOption) (*IntegrationSlack, error)
public IntegrationSlack(string name, IntegrationSlackArgs args, CustomResourceOptions? opts = null)
public IntegrationSlack(String name, IntegrationSlackArgs args)
public IntegrationSlack(String name, IntegrationSlackArgs args, CustomResourceOptions options)
type: gitlab:IntegrationSlack
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IntegrationSlackArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IntegrationSlackArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IntegrationSlackArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IntegrationSlackArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IntegrationSlackArgs
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 integrationSlackResource = new GitLab.IntegrationSlack("integrationSlackResource", new()
{
    Project = "string",
    Webhook = "string",
    PipelineChannel = "string",
    ConfidentialNoteEvents = false,
    IssueChannel = "string",
    IssuesEvents = false,
    MergeRequestChannel = "string",
    MergeRequestsEvents = false,
    NoteChannel = "string",
    NoteEvents = false,
    PipelineEvents = false,
    ConfidentialNoteChannel = "string",
    BranchesToBeNotified = "string",
    NotifyOnlyBrokenPipelines = false,
    ConfidentialIssuesEvents = false,
    PushChannel = "string",
    PushEvents = false,
    TagPushChannel = "string",
    TagPushEvents = false,
    Username = "string",
    ConfidentialIssueChannel = "string",
    WikiPageChannel = "string",
    WikiPageEvents = false,
});
Copy
example, err := gitlab.NewIntegrationSlack(ctx, "integrationSlackResource", &gitlab.IntegrationSlackArgs{
	Project:                   pulumi.String("string"),
	Webhook:                   pulumi.String("string"),
	PipelineChannel:           pulumi.String("string"),
	ConfidentialNoteEvents:    pulumi.Bool(false),
	IssueChannel:              pulumi.String("string"),
	IssuesEvents:              pulumi.Bool(false),
	MergeRequestChannel:       pulumi.String("string"),
	MergeRequestsEvents:       pulumi.Bool(false),
	NoteChannel:               pulumi.String("string"),
	NoteEvents:                pulumi.Bool(false),
	PipelineEvents:            pulumi.Bool(false),
	ConfidentialNoteChannel:   pulumi.String("string"),
	BranchesToBeNotified:      pulumi.String("string"),
	NotifyOnlyBrokenPipelines: pulumi.Bool(false),
	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),
})
Copy
var integrationSlackResource = new IntegrationSlack("integrationSlackResource", IntegrationSlackArgs.builder()
    .project("string")
    .webhook("string")
    .pipelineChannel("string")
    .confidentialNoteEvents(false)
    .issueChannel("string")
    .issuesEvents(false)
    .mergeRequestChannel("string")
    .mergeRequestsEvents(false)
    .noteChannel("string")
    .noteEvents(false)
    .pipelineEvents(false)
    .confidentialNoteChannel("string")
    .branchesToBeNotified("string")
    .notifyOnlyBrokenPipelines(false)
    .confidentialIssuesEvents(false)
    .pushChannel("string")
    .pushEvents(false)
    .tagPushChannel("string")
    .tagPushEvents(false)
    .username("string")
    .confidentialIssueChannel("string")
    .wikiPageChannel("string")
    .wikiPageEvents(false)
    .build());
Copy
integration_slack_resource = gitlab.IntegrationSlack("integrationSlackResource",
    project="string",
    webhook="string",
    pipeline_channel="string",
    confidential_note_events=False,
    issue_channel="string",
    issues_events=False,
    merge_request_channel="string",
    merge_requests_events=False,
    note_channel="string",
    note_events=False,
    pipeline_events=False,
    confidential_note_channel="string",
    branches_to_be_notified="string",
    notify_only_broken_pipelines=False,
    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)
Copy
const integrationSlackResource = new gitlab.IntegrationSlack("integrationSlackResource", {
    project: "string",
    webhook: "string",
    pipelineChannel: "string",
    confidentialNoteEvents: false,
    issueChannel: "string",
    issuesEvents: false,
    mergeRequestChannel: "string",
    mergeRequestsEvents: false,
    noteChannel: "string",
    noteEvents: false,
    pipelineEvents: false,
    confidentialNoteChannel: "string",
    branchesToBeNotified: "string",
    notifyOnlyBrokenPipelines: false,
    confidentialIssuesEvents: false,
    pushChannel: "string",
    pushEvents: false,
    tagPushChannel: "string",
    tagPushEvents: false,
    username: "string",
    confidentialIssueChannel: "string",
    wikiPageChannel: "string",
    wikiPageEvents: false,
});
Copy
type: gitlab:IntegrationSlack
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
Copy

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

Project
This property is required.
Changes to this property will trigger replacement.
string
ID of the project you want to activate integration on.
Webhook This property is required. string
Webhook URL (Example, https://hooks.slack.com/services/...). 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.
NotifyOnlyDefaultBranch bool
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

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
This property is required.
Changes to this property will trigger replacement.
string
ID of the project you want to activate integration on.
Webhook This property is required. string
Webhook URL (Example, https://hooks.slack.com/services/...). 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.
NotifyOnlyDefaultBranch bool
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

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
This property is required.
Changes to this property will trigger replacement.
String
ID of the project you want to activate integration on.
webhook This property is required. String
Webhook URL (Example, https://hooks.slack.com/services/...). 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.
notifyOnlyDefaultBranch Boolean
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

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
This property is required.
Changes to this property will trigger replacement.
string
ID of the project you want to activate integration on.
webhook This property is required. string
Webhook URL (Example, https://hooks.slack.com/services/...). 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.
notifyOnlyDefaultBranch boolean
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

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
This property is required.
Changes to this property will trigger replacement.
str
ID of the project you want to activate integration on.
webhook This property is required. str
Webhook URL (Example, https://hooks.slack.com/services/...). 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.
notify_only_default_branch bool
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

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
This property is required.
Changes to this property will trigger replacement.
String
ID of the project you want to activate integration on.
webhook This property is required. String
Webhook URL (Example, https://hooks.slack.com/services/...). 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.
notifyOnlyDefaultBranch Boolean
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

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 IntegrationSlack resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
JobEvents bool
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
Id string
The provider-assigned unique ID for this managed resource.
JobEvents bool
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
id String
The provider-assigned unique ID for this managed resource.
jobEvents Boolean
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
id string
The provider-assigned unique ID for this managed resource.
jobEvents boolean
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
id str
The provider-assigned unique ID for this managed resource.
job_events bool
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
id String
The provider-assigned unique ID for this managed resource.
jobEvents Boolean
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.

Look up Existing IntegrationSlack Resource

Get an existing IntegrationSlack 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?: IntegrationSlackState, opts?: CustomResourceOptions): IntegrationSlack
@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,
        job_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,
        notify_only_default_branch: 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) -> IntegrationSlack
func GetIntegrationSlack(ctx *Context, name string, id IDInput, state *IntegrationSlackState, opts ...ResourceOption) (*IntegrationSlack, error)
public static IntegrationSlack Get(string name, Input<string> id, IntegrationSlackState? state, CustomResourceOptions? opts = null)
public static IntegrationSlack get(String name, Output<String> id, IntegrationSlackState state, CustomResourceOptions options)
resources:  _:    type: gitlab:IntegrationSlack    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
JobEvents bool
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
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.
NotifyOnlyDefaultBranch bool
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

PipelineChannel string
The name of the channel to receive pipeline events notifications.
PipelineEvents bool
Enable notifications for pipeline events.
Project Changes to this property will trigger replacement. 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://hooks.slack.com/services/...). 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.
JobEvents bool
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
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.
NotifyOnlyDefaultBranch bool
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

PipelineChannel string
The name of the channel to receive pipeline events notifications.
PipelineEvents bool
Enable notifications for pipeline events.
Project Changes to this property will trigger replacement. 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://hooks.slack.com/services/...). 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.
jobEvents Boolean
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
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.
notifyOnlyDefaultBranch Boolean
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

pipelineChannel String
The name of the channel to receive pipeline events notifications.
pipelineEvents Boolean
Enable notifications for pipeline events.
project Changes to this property will trigger replacement. 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://hooks.slack.com/services/...). 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.
jobEvents boolean
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
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.
notifyOnlyDefaultBranch boolean
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

pipelineChannel string
The name of the channel to receive pipeline events notifications.
pipelineEvents boolean
Enable notifications for pipeline events.
project Changes to this property will trigger replacement. 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://hooks.slack.com/services/...). 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.
job_events bool
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
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.
notify_only_default_branch bool
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

pipeline_channel str
The name of the channel to receive pipeline events notifications.
pipeline_events bool
Enable notifications for pipeline events.
project Changes to this property will trigger replacement. 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://hooks.slack.com/services/...). 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.
jobEvents Boolean
Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://gitlab.com/gitlab-org/api/client-go/issues/1354.
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.
notifyOnlyDefaultBranch Boolean
This parameter has been replaced with branches_to_be_notified.

Deprecated: use 'branches_to_be_notified' argument instead

pipelineChannel String
The name of the channel to receive pipeline events notifications.
pipelineEvents Boolean
Enable notifications for pipeline events.
project Changes to this property will trigger replacement. 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://hooks.slack.com/services/...). 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

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

terraform

import {

to = gitlab_integration_slack.example

id = “see CLI command below for ID”

}

Import using the CLI is supported using the following syntax:

You can import a gitlab_integration_slack.slack state using the project ID, e.g.

$ pulumi import gitlab:index/integrationSlack:IntegrationSlack slack 1
Copy

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.