Show / Hide Table of Contents

Class 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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ServiceSlack
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class ServiceSlack : CustomResource

Constructors

View Source

ServiceSlack(String, ServiceSlackArgs, CustomResourceOptions)

Create a ServiceSlack resource with the given unique name, arguments, and options.

Declaration
public ServiceSlack(string name, ServiceSlackArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ServiceSlackArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

BranchesToBeNotified

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

Declaration
public Output<string> BranchesToBeNotified { get; }
Property Value
Type Description
Output<System.String>
View Source

ConfidentialIssueChannel

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

Declaration
public Output<string> ConfidentialIssueChannel { get; }
Property Value
Type Description
Output<System.String>
View Source

ConfidentialIssuesEvents

Enable notifications for confidential issues events.

Declaration
public Output<bool> ConfidentialIssuesEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

ConfidentialNoteEvents

Enable notifications for confidential note events.

Declaration
public Output<bool> ConfidentialNoteEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

IssueChannel

The name of the channel to receive issue events notifications.

Declaration
public Output<string> IssueChannel { get; }
Property Value
Type Description
Output<System.String>
View Source

IssuesEvents

Enable notifications for issues events.

Declaration
public Output<bool> IssuesEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

JobEvents

Declaration
public Output<bool> JobEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

MergeRequestChannel

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

Declaration
public Output<string> MergeRequestChannel { get; }
Property Value
Type Description
Output<System.String>
View Source

MergeRequestsEvents

Enable notifications for merge requests events.

Declaration
public Output<bool> MergeRequestsEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

NoteChannel

The name of the channel to receive note events notifications.

Declaration
public Output<string> NoteChannel { get; }
Property Value
Type Description
Output<System.String>
View Source

NoteEvents

Enable notifications for note events.

Declaration
public Output<bool> NoteEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

NotifyOnlyBrokenPipelines

Send notifications for broken pipelines.

Declaration
public Output<bool> NotifyOnlyBrokenPipelines { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

NotifyOnlyDefaultBranch

DEPRECATED: This parameter has been replaced with branches_to_be_notified.

Declaration
public Output<bool> NotifyOnlyDefaultBranch { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

PipelineChannel

The name of the channel to receive pipeline events notifications.

Declaration
public Output<string> PipelineChannel { get; }
Property Value
Type Description
Output<System.String>
View Source

PipelineEvents

Enable notifications for pipeline events.

Declaration
public Output<bool> PipelineEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Project

ID of the project you want to activate integration on.

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

PushChannel

The name of the channel to receive push events notifications.

Declaration
public Output<string> PushChannel { get; }
Property Value
Type Description
Output<System.String>
View Source

PushEvents

Enable notifications for push events.

Declaration
public Output<bool> PushEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

TagPushChannel

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

Declaration
public Output<string> TagPushChannel { get; }
Property Value
Type Description
Output<System.String>
View Source

TagPushEvents

Enable notifications for tag push events.

Declaration
public Output<bool> TagPushEvents { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Username

Username to use.

Declaration
public Output<string> Username { get; }
Property Value
Type Description
Output<System.String>
View Source

Webhook

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

Declaration
public Output<string> Webhook { get; }
Property Value
Type Description
Output<System.String>
View Source

WikiPageChannel

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

Declaration
public Output<string> WikiPageChannel { get; }
Property Value
Type Description
Output<System.String>
View Source

WikiPageEvents

Enable notifications for wiki page events.

Declaration
public Output<bool> WikiPageEvents { get; }
Property Value
Type Description
Output<System.Boolean>

Methods

View Source

Get(String, Input<String>, ServiceSlackState, CustomResourceOptions)

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

Declaration
public static ServiceSlack Get(string name, Input<string> id, ServiceSlackState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ServiceSlackState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ServiceSlack
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.