ServiceSlackArgs

data class ServiceSlackArgs(val branchesToBeNotified: Output<String>? = null, val confidentialIssueChannel: Output<String>? = null, val confidentialIssuesEvents: Output<Boolean>? = null, val confidentialNoteEvents: Output<Boolean>? = null, val issueChannel: Output<String>? = null, val issuesEvents: Output<Boolean>? = null, val mergeRequestChannel: Output<String>? = null, val mergeRequestsEvents: Output<Boolean>? = null, val noteChannel: Output<String>? = null, val noteEvents: Output<Boolean>? = null, val notifyOnlyBrokenPipelines: Output<Boolean>? = null, val notifyOnlyDefaultBranch: Output<Boolean>? = null, val pipelineChannel: Output<String>? = null, val pipelineEvents: Output<Boolean>? = null, val project: Output<String>? = null, val pushChannel: Output<String>? = null, val pushEvents: Output<Boolean>? = null, val tagPushChannel: Output<String>? = null, val tagPushEvents: Output<Boolean>? = null, val username: Output<String>? = null, val webhook: Output<String>? = null, val wikiPageChannel: Output<String>? = null, val wikiPageEvents: Output<Boolean>? = null) : ConvertibleToJava<ServiceSlackArgs>

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

This resource is deprecated. use gitlab.IntegrationSlackinstead! 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("awesomeProject", {
description: "My awesome project.",
visibilityLevel: "public",
});
const slack = new gitlab.ServiceSlack("slack", {
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("awesomeProject",
description="My awesome project.",
visibility_level="public")
slack = gitlab.ServiceSlack("slack",
project=awesome_project.id,
webhook="https://webhook.com",
username="myuser",
push_events=True,
push_channel="push_chan")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var awesomeProject = new GitLab.Project("awesomeProject", new()
{
Description = "My awesome project.",
VisibilityLevel = "public",
});
var slack = new GitLab.ServiceSlack("slack", new()
{
Project = awesomeProject.Id,
Webhook = "https://webhook.com",
Username = "myuser",
PushEvents = true,
PushChannel = "push_chan",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{
Description: pulumi.String("My awesome project."),
VisibilityLevel: pulumi.String("public"),
})
if err != nil {
return err
}
_, err = gitlab.NewServiceSlack(ctx, "slack", &gitlab.ServiceSlackArgs{
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
})
}
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.ServiceSlack;
import com.pulumi.gitlab.ServiceSlackArgs;
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()
.description("My awesome project.")
.visibilityLevel("public")
.build());
var slack = new ServiceSlack("slack", ServiceSlackArgs.builder()
.project(awesomeProject.id())
.webhook("https://webhook.com")
.username("myuser")
.pushEvents(true)
.pushChannel("push_chan")
.build());
}
}
resources:
awesomeProject:
type: gitlab:Project
properties:
description: My awesome project.
visibilityLevel: public
slack:
type: gitlab:ServiceSlack
properties:
project: ${awesomeProject.id}
webhook: https://webhook.com
username: myuser
pushEvents: true
pushChannel: push_chan

Import

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

$ pulumi import gitlab:index/serviceSlack:ServiceSlack email 1

Constructors

Link copied to clipboard
constructor(branchesToBeNotified: Output<String>? = null, confidentialIssueChannel: Output<String>? = null, confidentialIssuesEvents: Output<Boolean>? = null, confidentialNoteEvents: Output<Boolean>? = null, issueChannel: Output<String>? = null, issuesEvents: Output<Boolean>? = null, mergeRequestChannel: Output<String>? = null, mergeRequestsEvents: Output<Boolean>? = null, noteChannel: Output<String>? = null, noteEvents: Output<Boolean>? = null, notifyOnlyBrokenPipelines: Output<Boolean>? = null, notifyOnlyDefaultBranch: Output<Boolean>? = null, pipelineChannel: Output<String>? = null, pipelineEvents: Output<Boolean>? = null, project: Output<String>? = null, pushChannel: Output<String>? = null, pushEvents: Output<Boolean>? = null, tagPushChannel: Output<String>? = null, tagPushEvents: Output<Boolean>? = null, username: Output<String>? = null, webhook: Output<String>? = null, wikiPageChannel: Output<String>? = null, wikiPageEvents: Output<Boolean>? = null)

Properties

Link copied to clipboard
val branchesToBeNotified: Output<String>? = null

Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".

Link copied to clipboard
val confidentialIssueChannel: Output<String>? = null

The name of the channel to receive confidential issue events notifications.

Link copied to clipboard
val confidentialIssuesEvents: Output<Boolean>? = null

Enable notifications for confidential issues events.

Link copied to clipboard
val confidentialNoteEvents: Output<Boolean>? = null

Enable notifications for confidential note events.

Link copied to clipboard
val issueChannel: Output<String>? = null

The name of the channel to receive issue events notifications.

Link copied to clipboard
val issuesEvents: Output<Boolean>? = null

Enable notifications for issues events.

Link copied to clipboard
val mergeRequestChannel: Output<String>? = null

The name of the channel to receive merge request events notifications.

Link copied to clipboard
val mergeRequestsEvents: Output<Boolean>? = null

Enable notifications for merge requests events.

Link copied to clipboard
val noteChannel: Output<String>? = null

The name of the channel to receive note events notifications.

Link copied to clipboard
val noteEvents: Output<Boolean>? = null

Enable notifications for note events.

Link copied to clipboard
val notifyOnlyBrokenPipelines: Output<Boolean>? = null

Send notifications for broken pipelines.

Link copied to clipboard
val notifyOnlyDefaultBranch: Output<Boolean>? = null

This parameter has been replaced with branches_to_be_notified.

Link copied to clipboard
val pipelineChannel: Output<String>? = null

The name of the channel to receive pipeline events notifications.

Link copied to clipboard
val pipelineEvents: Output<Boolean>? = null

Enable notifications for pipeline events.

Link copied to clipboard
val project: Output<String>? = null

ID of the project you want to activate integration on.

Link copied to clipboard
val pushChannel: Output<String>? = null

The name of the channel to receive push events notifications.

Link copied to clipboard
val pushEvents: Output<Boolean>? = null

Enable notifications for push events.

Link copied to clipboard
val tagPushChannel: Output<String>? = null

The name of the channel to receive tag push events notifications.

Link copied to clipboard
val tagPushEvents: Output<Boolean>? = null

Enable notifications for tag push events.

Link copied to clipboard
val username: Output<String>? = null

Username to use.

Link copied to clipboard
val webhook: Output<String>? = null

Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.

Link copied to clipboard
val wikiPageChannel: Output<String>? = null

The name of the channel to receive wiki page events notifications.

Link copied to clipboard
val wikiPageEvents: Output<Boolean>? = null

Enable notifications for wiki page events.

Functions

Link copied to clipboard
open override fun toJava(): ServiceSlackArgs