ServiceSlack

This resource allows you to manage Slack notifications integration.

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var awesomeProject = new GitLab.Project("awesomeProject", new GitLab.ProjectArgs
        {
            Description = "My awesome project.",
            VisibilityLevel = "public",
        });
        var slack = new GitLab.ServiceSlack("slack", new GitLab.ServiceSlackArgs
        {
            Project = awesomeProject.Id,
            PushChannel = "push_chan",
            PushEvents = true,
            Username = "myuser",
            Webhook = "https://webhook.com",
        });
    }

}

Coming soon!

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,
    push_channel="push_chan",
    push_events=True,
    username="myuser",
    webhook="https://webhook.com")
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";

const awesomeProject = new gitlab.Project("awesome_project", {
    description: "My awesome project.",
    visibilityLevel: "public",
});
const slack = new gitlab.ServiceSlack("slack", {
    project: awesomeProject.id,
    pushChannel: "push_chan",
    pushEvents: true,
    username: "myuser",
    webhook: "https://webhook.com",
});

Create a ServiceSlack Resource

def ServiceSlack(resource_name, opts=None, branches_to_be_notified=None, confidential_issue_channel=None, confidential_issues_events=None, confidential_note_events=None, issue_channel=None, issues_events=None, merge_request_channel=None, merge_requests_events=None, note_channel=None, note_events=None, notify_only_broken_pipelines=None, notify_only_default_branch=None, pipeline_channel=None, pipeline_events=None, project=None, push_channel=None, push_events=None, tag_push_channel=None, tag_push_events=None, username=None, webhook=None, wiki_page_channel=None, wiki_page_events=None, __props__=None);
func NewServiceSlack(ctx *Context, name string, args ServiceSlackArgs, opts ...ResourceOption) (*ServiceSlack, error)
name string
The unique name of the resource.
args ServiceSlackArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ServiceSlackArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceSlackArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServiceSlack Resource Properties

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

Inputs

The ServiceSlack resource accepts the following input properties:

Project string

ID of the project you want to activate integration on.

Webhook string

Webhook URL (ex.: https://hooks.slack.com/services/...)

BranchesToBeNotified string

Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.

ConfidentialIssueChannel string

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

ConfidentialIssuesEvents bool

Enable notifications for confidential issues events.

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

DEPRECATED: 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 string

ID of the project you want to activate integration on.

Webhook string

Webhook URL (ex.: https://hooks.slack.com/services/...)

BranchesToBeNotified string

Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.

ConfidentialIssueChannel string

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

ConfidentialIssuesEvents bool

Enable notifications for confidential issues events.

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

DEPRECATED: 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 string

ID of the project you want to activate integration on.

webhook string

Webhook URL (ex.: https://hooks.slack.com/services/...)

branchesToBeNotified string

Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.

confidentialIssueChannel string

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

confidentialIssuesEvents boolean

Enable notifications for confidential issues events.

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

DEPRECATED: 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 str

ID of the project you want to activate integration on.

webhook str

Webhook URL (ex.: https://hooks.slack.com/services/...)

branches_to_be_notified str

Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.

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_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

DEPRECATED: 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.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
JobEvents bool
Id string
The provider-assigned unique ID for this managed resource.
JobEvents bool
id string
The provider-assigned unique ID for this managed resource.
jobEvents boolean
id str
The provider-assigned unique ID for this managed resource.
job_events bool

Look up an Existing ServiceSlack Resource

Get an existing ServiceSlack 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?: ServiceSlackState, opts?: CustomResourceOptions): ServiceSlack
static get(resource_name, id, opts=None, branches_to_be_notified=None, confidential_issue_channel=None, confidential_issues_events=None, confidential_note_events=None, issue_channel=None, issues_events=None, job_events=None, merge_request_channel=None, merge_requests_events=None, note_channel=None, note_events=None, notify_only_broken_pipelines=None, notify_only_default_branch=None, pipeline_channel=None, pipeline_events=None, project=None, push_channel=None, push_events=None, tag_push_channel=None, tag_push_events=None, username=None, webhook=None, wiki_page_channel=None, wiki_page_events=None, __props__=None);
func GetServiceSlack(ctx *Context, name string, id IDInput, state *ServiceSlackState, opts ...ResourceOption) (*ServiceSlack, error)
public static ServiceSlack Get(string name, Input<string> id, ServiceSlackState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

BranchesToBeNotified string

Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.

ConfidentialIssueChannel string

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

ConfidentialIssuesEvents bool

Enable notifications for confidential issues events.

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
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

DEPRECATED: 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 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 (ex.: https://hooks.slack.com/services/...)

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 “default_and_protected”.

ConfidentialIssueChannel string

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

ConfidentialIssuesEvents bool

Enable notifications for confidential issues events.

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
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

DEPRECATED: 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 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 (ex.: https://hooks.slack.com/services/...)

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 “default_and_protected”.

confidentialIssueChannel string

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

confidentialIssuesEvents boolean

Enable notifications for confidential issues events.

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
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

DEPRECATED: 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 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 (ex.: https://hooks.slack.com/services/...)

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 “default_and_protected”.

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_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
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

DEPRECATED: 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 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 (ex.: https://hooks.slack.com/services/...)

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.

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.